package com.jyy.prefabricated.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jyy.prefabricated.enums.BaseStatusEnum;
import com.jyy.prefabricated.enums.UserTypeEnum;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @version 1.0.0
 * @author: zjj
 */
@Data
public class SysUserDto {

    private Integer id;

    private String username;

    private String password;

    private String mobile;

    private String email;

    private String name;

    private Integer sex;

    private Integer userType = UserTypeEnum.ADMIN.getValue();

    private String idCard;

    private String jobNumber;

    private String remark;

    private String channelCode;
    private Boolean deleted = false;

    private Integer status = BaseStatusEnum.VALID.getValue();

    private String userId;

    private String inviter;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date bindingTime;
    //分页信息
    private int pageNum = 1;

    private int pageSize = 20;
}
